
<header>
    <h1>{{title}}</h1>
</header>
{{#if success}}
    <div class="success">{{success}}</div>
{{/if}}
{{#if error}}
    <div class="error">{{error}}</div>
{{/if}}
<nav>
    <span><a href="/">Home</a></span>
    <span><a href="/archives">Archives</a></span>
    <span><a href="/tags">tags</a></span>

    {{#if user}}
        <span><a href="/post">Post</a></span>
        <span><a href="/logout">Logout</a></span>
    {{else}}
        <span><a href="/reg">Register</a></span>
        <span><a href="/login">Login</a></span>
    {{/if}}
</nav>
